package cn.liuhong.service;


import cn.liuhong.dao.EmpMapper;
import cn.liuhong.dao.UsersMapper;
import cn.liuhong.entity.Emp;
import cn.liuhong.entity.Users;
import cn.liuhong.entity.UsersExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Autowired
    private UsersMapper usersMapper;

    public Emp getEmp(Integer id){
    	return empMapper.getEmp(id);
    }
    public List<Users> getUsers(UsersExample usersExample){
        return  usersMapper.selectByExample(usersExample);
    }
}
